
class LotteryWinningNumListController {
    constructor($rootScope,$scope,$state,$compile,$sce,UserService,AccountService,LotteryService){
        Object.assign(this,{$rootScope,$scope,$state,$compile,$sce,UserService,AccountService,LotteryService});
        this.lotteryType = $state.params.type;
        this.init();
    }

    /**
     * 初始化
     */
    init() {
        let self = this;
        let param = {};
        param.lot_type = self.lotteryType;
        param.page_index = 0;
        self.LotteryService.get_lottery_winning_num_list(param,{}).then(_success).catch(_error);
        function _success(data) {
            self.winningNumData = data.data.data_list;
        }

        function _error(reason) {
            console.log(JSON.stringify(reason));
        }
    }

}
LotteryWinningNumListController.$inject = ["$rootScope","$scope","$state","$compile","$sce","UserService","AccountService","LotteryService"];

export default LotteryWinningNumListController;